<div class="sidebar">
<script type="text/javascript">
  $(document).ready(function(){

    var sidebar_ah=1000;
    var now_s,sidebar_hy=0;
    var is_single=0;
    <?php if(is_single()): ?>
      is_single=1;
    <?php endif; ?>

    $("#sidebar_f").hide();
    
    var mwidth=$("body").width();

  });
</script>
  
  <div style="height:40px">
    <form class="navbar-form navbar-right" role="search" method="get" action="<?php bloginfo('url'); ?>" style="min-width:200px;max-width:100%;width: 262px;height:40px;padding:0 0 0 0;margin:20px 0 0 -5px;">
      <label class="hidden" for="s"><?php _e(''); ?></label>
      <div class="form-group" style="width:77%;">
        <input class="form-control" type="text" placeholder="Search" name="s" style="width:100%;" />
      </div>
      <input class="btn btn-default btn-primary" type="submit" value="搜索" style="float:right;width:20%;" />
    </form>
  </div>

  <?php if ( is_active_sidebar( 'sidebar-1' ) ) : ?>
		<div id="secondary" class="widget-area" role="complementary">
			<?php dynamic_sidebar( 'sidebar-1' ); ?>
		</div>
  <?php endif; ?>
  <!--
  <div id="sidebar_f">
    <div style="color:#fff;background-color:#2EA2CC;pading 5px 0 5px 0;text-align:center;margin-bottom:3px;">工具栏</div>
    <form method="get" id="searchform" action="<?php bloginfo('url'); ?>">
      <label class="hidden" for="s"><?php _e(''); ?></label>
      <input class="form-control" type="text" size="20" required="required" placeholder="搜索文章..." name="s" style="margin: 0 0 0 2px;width:168px;height: 40px;" />
      <input class="btn btn-primary" type="submit" value="搜索" style="width:40px;margin:-3px 0 0 0;" />
    </form>
    <h2 class="widgettitle" style="margin: 10px 0 0 5px;font-size:24px;" >文章日历</h2>
    <?php get_calendar(); ?>
    <div title="在返回顶部时再显示侧边栏" id="sidebar_h" style="cursor: default;text-align:center;background-color:#ccc;">隐藏侧边栏&nbsp;&nbsp;>></div>
  </div>
  -->
</div>

  <script type="text/javascript">
    jQuery("#loading").animate({width:"70%"},500);
  </script>
